import { createRouter, createWebHistory } from 'vue-router'
import searchView from '@/views/search/index.vue'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/search',
      name: 'search',
      component: searchView,
    },
    {
      path: '/',
      redirect: '/search'
    }
  ],
})

export default router
